package com.service.impl;

import com.bean.entity.Role;
import com.bean.vo.RoleVo;
import com.dao.RoleMapper;
import com.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 职务业务实现
 */
@Service
public class RoleServiceImpl implements RoleService {
    @Autowired
    private RoleMapper roleMapper;

    /**
     * 查询所有职务
     * @param role
     * @return
     */
    @Override
    public List<RoleVo> queryAll(Role role) {
        //查询职务
        List<RoleVo> roleVoList = roleMapper.select(role);
        return roleVoList;
    }
}
